<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="jquery-1.10.1.js"></script>
<script type="text/javascript">
var map = [{
	"title":"第一天上午", 
	"href":"http://share.polyv.net/front/video/preview?vid=ab03e6eba746921b75eb92c8cabc0bc6_a"
		},
{"title":"第一天下午1", 
			"href": "http://share.polyv.net/front/video/preview?vid=ab03e6eba776b948570557337b77a240_a"},
			
{"title":"第一天下午2", "href":"http://share.polyv.net/front/video/preview?vid=ab03e6eba782c38bfbea0800d4c1d58c_a"}
           
           ]

$(document).ready(function(){
	$("#f1").empty();
	map.forEach(function(n, i){
		let str = '<li><a href="javascript:void(0)" onclick="change(\'' + n.href + '\')">' +n.title + '</a></li>';
		$("#ul1").append(str)
	})
	
})
function change(x) {
	$("#if1").attr("src", x)
	//.get(0).contentWindow.location.reload(true);

}
</script>
</head>
<body>
	<h1>上午</h1>
	<ul id="ul1">
		
	</ul>
	<iframe id="if1" style='width: 600px;height: 338px' frameborder='no' allowfullscreen mozallowfullscreen webkitallowfullscreen src='blank.jsp'></iframe>
</body>
</html>